export default {
	baseUrl: "https://aicard.api.bizcloud.biz",
	getUrl(baseUrl, version, serviceName, shortUrl) {
		if (shortUrl) {
			return baseUrl + "/" + version + "/" + serviceName + "/" + shortUrl;
		}
	},
	aiCard(shortUrl) {
		let baseUrl = this.baseUrl;
		// let baseUrl = "http://192.168.0.102:10002"
		let version = "v1";
		let serviceName = "ai-card";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
	ragflow(shortUrl) {
		// let baseUrl = this.baseUrl;
		let baseUrl = "https://ragflow.api.bizcloud.biz/api/v1"
		return baseUrl + "/" + shortUrl;
	},
	wechat(shortUrl) {
		let baseUrl = this.baseUrl;
		let version = "v1";
		let serviceName = "wechat";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
	es(shortUrl) {
		let baseUrl = this.baseUrl;
		let version = "v1";
		let serviceName = "es";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
	data(shortUrl) {
		let baseUrl = this.baseUrl;
		let version = "v1";
		let serviceName = "data";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
	document(shortUrl) {
		let baseUrl = this.baseUrl;
		let version = "v1";
		let serviceName = "document";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
	message(shortUrl) {
		let baseUrl = this.baseUrl;
		let version = "v1";
		let serviceName = "message";
		return this.getUrl(baseUrl, version, serviceName,shortUrl);
	},
}